import sequelize from "../db/db";
import { DataTypes } from "sequelize";

const Comment = sequelize.define(
  "Comment",
  {
    name: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    imgUrl: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    zan: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    cai: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    content: {
      type: DataTypes.TEXT,
      allowNull: false,
    },
    createdTime: {
      type: DataTypes.STRING,
      allowNull: false,
    },
  },
  { paranoid: true }
);
export default Comment;
